<?php

namespace Tests\XinSheng;

use PHPUnit\Framework\TestCase;
use XinSheng\OutsideRateByIrr;

class TestOutsideRateByIrr extends TestCase
{

    public function testSetFront()
    {

    }

    public function testGetOutsideRate()
    {
        $rbi = new OutsideRateByIrr(
            1000000.00, 0.8, 200000.00, 0.8, 0.00,
            0.8, 0.00, 0.8, 20000.00, 0.45, 0.08, 36
        );
        $rbi->setFront(0.11);
        $outsideRate = $rbi->getOutsideRate();
        var_dump($outsideRate);
        self::assertIsFloat($outsideRate);
    }
}
